package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/10/17.
 * Des:
 */
@Entity
@Table(name = "yd_record_comment_t", schema = "jshoperxms", catalog = "")
public class YdRecordCommentT {
    private String id;
    private String recordid;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String rctitle;
    private String rcname;
    private String commentcontent;
    private int score;
    private String rctype;
    private String commentreplyid;
    private String rcmemberid;
    private String isvirtualadd;
    private String storeid;
    private String targetmemberid;
    private String isreviewed;
    private long reviewedtime;
    private int zan;
    private int cai;
    private String avatarurl;
    private String wxopenid;
    private String targetwxopenid;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "RECORDID", nullable = false, length = 25)
    public String getRecordid() {
        return recordid;
    }

    public void setRecordid(String recordid) {
        this.recordid = recordid;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "RCTITLE", nullable = false, length = 100)
    public String getRctitle() {
        return rctitle;
    }

    public void setRctitle(String rctitle) {
        this.rctitle = rctitle;
    }

    @Basic
    @Column(name = "RCNAME", nullable = false, length = 100)
    public String getRcname() {
        return rcname;
    }

    public void setRcname(String rcname) {
        this.rcname = rcname;
    }

    @Basic
    @Column(name = "COMMENTCONTENT", nullable = false, length = 500)
    public String getCommentcontent() {
        return commentcontent;
    }

    public void setCommentcontent(String commentcontent) {
        this.commentcontent = commentcontent;
    }

    @Basic
    @Column(name = "SCORE", nullable = false)
    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Basic
    @Column(name = "RCTYPE", nullable = false, length = 1)
    public String getRctype() {
        return rctype;
    }

    public void setRctype(String rctype) {
        this.rctype = rctype;
    }

    @Basic
    @Column(name = "COMMENTREPLYID", nullable = false, length = 25)
    public String getCommentreplyid() {
        return commentreplyid;
    }

    public void setCommentreplyid(String commentreplyid) {
        this.commentreplyid = commentreplyid;
    }

    @Basic
    @Column(name = "RCMEMBERID", nullable = false, length = 25)
    public String getRcmemberid() {
        return rcmemberid;
    }

    public void setRcmemberid(String rcmemberid) {
        this.rcmemberid = rcmemberid;
    }

    @Basic
    @Column(name = "ISVIRTUALADD", nullable = false, length = 1)
    public String getIsvirtualadd() {
        return isvirtualadd;
    }

    public void setIsvirtualadd(String isvirtualadd) {
        this.isvirtualadd = isvirtualadd;
    }

    @Basic
    @Column(name = "STOREID", nullable = false, length = 25)
    public String getStoreid() {
        return storeid;
    }

    public void setStoreid(String storeid) {
        this.storeid = storeid;
    }

    @Basic
    @Column(name = "TARGETMEMBERID", nullable = false, length = 25)
    public String getTargetmemberid() {
        return targetmemberid;
    }

    public void setTargetmemberid(String targetmemberid) {
        this.targetmemberid = targetmemberid;
    }

    @Basic
    @Column(name = "ISREVIEWED", nullable = false, length = 1)
    public String getIsreviewed() {
        return isreviewed;
    }

    public void setIsreviewed(String isreviewed) {
        this.isreviewed = isreviewed;
    }

    @Basic
    @Column(name = "REVIEWEDTIME", nullable = false)
    public long getReviewedtime() {
        return reviewedtime;
    }

    public void setReviewedtime(long reviewedtime) {
        this.reviewedtime = reviewedtime;
    }

    @Basic
    @Column(name = "ZAN", nullable = false)
    public int getZan() {
        return zan;
    }

    public void setZan(int zan) {
        this.zan = zan;
    }

    @Basic
    @Column(name = "CAI", nullable = false)
    public int getCai() {
        return cai;
    }

    public void setCai(int cai) {
        this.cai = cai;
    }

    @Basic
    @Column(name = "AVATARURL", nullable = false, length = 500)
    public String getAvatarurl() {
        return avatarurl;
    }

    public void setAvatarurl(String avatarurl) {
        this.avatarurl = avatarurl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdRecordCommentT that = (YdRecordCommentT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (score != that.score) return false;
        if (reviewedtime != that.reviewedtime) return false;
        if (zan != that.zan) return false;
        if (cai != that.cai) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (recordid != null ? !recordid.equals(that.recordid) : that.recordid != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (rctitle != null ? !rctitle.equals(that.rctitle) : that.rctitle != null) return false;
        if (rcname != null ? !rcname.equals(that.rcname) : that.rcname != null) return false;
        if (commentcontent != null ? !commentcontent.equals(that.commentcontent) : that.commentcontent != null)
            return false;
        if (rctype != null ? !rctype.equals(that.rctype) : that.rctype != null) return false;
        if (commentreplyid != null ? !commentreplyid.equals(that.commentreplyid) : that.commentreplyid != null)
            return false;
        if (rcmemberid != null ? !rcmemberid.equals(that.rcmemberid) : that.rcmemberid != null) return false;
        if (isvirtualadd != null ? !isvirtualadd.equals(that.isvirtualadd) : that.isvirtualadd != null) return false;
        if (storeid != null ? !storeid.equals(that.storeid) : that.storeid != null) return false;
        if (targetmemberid != null ? !targetmemberid.equals(that.targetmemberid) : that.targetmemberid != null)
            return false;
        if (isreviewed != null ? !isreviewed.equals(that.isreviewed) : that.isreviewed != null) return false;
        if (avatarurl != null ? !avatarurl.equals(that.avatarurl) : that.avatarurl != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (recordid != null ? recordid.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (rctitle != null ? rctitle.hashCode() : 0);
        result = 31 * result + (rcname != null ? rcname.hashCode() : 0);
        result = 31 * result + (commentcontent != null ? commentcontent.hashCode() : 0);
        result = 31 * result + score;
        result = 31 * result + (rctype != null ? rctype.hashCode() : 0);
        result = 31 * result + (commentreplyid != null ? commentreplyid.hashCode() : 0);
        result = 31 * result + (rcmemberid != null ? rcmemberid.hashCode() : 0);
        result = 31 * result + (isvirtualadd != null ? isvirtualadd.hashCode() : 0);
        result = 31 * result + (storeid != null ? storeid.hashCode() : 0);
        result = 31 * result + (targetmemberid != null ? targetmemberid.hashCode() : 0);
        result = 31 * result + (isreviewed != null ? isreviewed.hashCode() : 0);
        result = 31 * result + (int) (reviewedtime ^ (reviewedtime >>> 32));
        result = 31 * result + zan;
        result = 31 * result + cai;
        result = 31 * result + (avatarurl != null ? avatarurl.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "TARGETWXOPENID", nullable = true, length = 45)
    public String getTargetwxopenid() {
        return targetwxopenid;
    }

    public void setTargetwxopenid(String targetwxopenid) {
        this.targetwxopenid = targetwxopenid;
    }
}
